package com.erp.erp_project.service.impl;

import com.erp.erp_project.mapper.PowerMapper;
import com.erp.erp_project.model.Power;
import com.erp.erp_project.service.PowerService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author yh
 */
@Service
public class PowerServiceImpl extends BaseServiceImpl<Power, PowerMapper> implements PowerService {
    @Autowired
    private PowerMapper powerMapper;
    public PowerServiceImpl(PowerMapper mapper) {
        super(mapper);
    }

    @Override
    public String query(Integer roleId) {
        return powerMapper.query(roleId);
    }

    @Override
    public List<Power> selects(String strs) {
        List<Power> powers=powerMapper.selects(strs);
        return powers;
    }

    @Override
    public void addrp(Integer roleId,String ids){
        powerMapper.addrp(roleId,ids);
    }
}
